{|if $errors|}
    {|foreach from=$errors item="item"|}
        {|if $item == "login"|}Empty login<br />{|/if|}
        {|if $item == "password"|}Empty password<br />{|/if|}
        {|if $item == "name"|}Empty name<br />{|/if|}
        {|if $item == "level"|}Empty level<br />{|/if|}
    {|/foreach|}
{|/if|}
{|if $message == "ok"|}
    <script type="text/javascript">window.location = "/controlpanel/users/"</script>
{|/if|}
{|if $message != "ok"|}
<form method="post">
<table>
    <tr>
        <td>Login: </td>
        <td><input type="text" name="login" value="{|$control_login|}" /></td>
    </tr>
    <tr>
        <td>Password: </td>
        <td><input type="password" name="password" value="{|$control_password|}" /></td>
    </tr>
    <tr>
        <td>Name: </td>
        <td><input type="text" name="name" value="{|$control_name|}" /></td>
    </tr>
    <tr>
        <td>Level: </td>
        <td><input type="text" name="level" value="{|$control_level|}" /></td>
    </tr>
    <tr>
        <td><input type="submit" name="save" value="Save" /></td>
    </tr>
</table>
</form>
{|/if|}